package com.glls.account.controller;

import com.glls.account.service.AccountService;
import com.glls.common.vo.OrderVo;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * TODO
 *
 * @author junyang
 * @version 1.0.0
 * @date 2025/2/24 14:48
 */
@RestController
@RequestMapping("/account")
@Slf4j
public class AccountController {
    @Resource
    private AccountService accountService;

    @PostMapping("/updateAccount")
    public int updateAccount(@RequestBody OrderVo order) {
        return accountService.updateAccount(order);
    }

    @GetMapping("/testAccount")
    public String testAccount() {
        log.info("testAccount");
        return "testAccount";
    }


}
